package team.seekers.catering.user.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import team.seekers.catering.common.enums.FoodAmountTypeEnum;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author cbj
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="user对象", description="")
public class UserFit implements Serializable{

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private Integer sex;

    private Integer height;

    private Integer weight;

    private BigDecimal bmi;

    private Integer wish;

    @ApiModelProperty("能量参考摄入量")
    private Integer simpleEnergy;

    @ApiModelProperty("能量限制摄入量")
    private Integer dayLimitEnergy;


    @ApiModelProperty(value = "开始时的体重")
    private Integer weightStart;

    @ApiModelProperty(value = "结束时的体重")
    private Integer weightEnd;

    @ApiModelProperty(value = "预计目标完成时间（周）")
    private Integer wishWeeks;

    @ApiModelProperty(value = "每日运动时间")
    private String dayLong;

    @ApiModelProperty(value = "每日运动强度")
    private Integer sport;





    @ApiModelProperty(value = "推荐的食物档位")
    @TableField("food_type")
    @JsonValue
    private FoodAmountTypeEnum foodType;

    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
